package com.spark.incoicings.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.spark.invoicings.entity.WarehouseReceipt;
import com.spark.invoicings.utils.Result;

import java.util.List;
import java.util.Map;

public interface WarehouseReceiptService extends IService<WarehouseReceipt> {

    /**
     * 根据id获取入库单
     * @param id
     * @return
     */
    WarehouseReceipt selectWarehouseReceiptById(Integer id);

    /**
     * 根据id删除入库单
     * @param id
     * @return
     */
    boolean delWarehouseReceiptById(Integer id);

    /**
     * 根据id更新入库单
     * @param warehouseReceipt
     * @return
     */
    boolean updateWarehouseReceiptById(WarehouseReceipt warehouseReceipt);

    /**
     * 查询所有的入库单
     * @param map
     * @return
     */
    List<WarehouseReceipt> selectWarehouseReceiptAll(Map<String, Object> map);

    /**
     * 添加入库单
     * @param warehouseReceipt
     * @return
     */
    Result addWarehouseReceipt(WarehouseReceipt warehouseReceipt);

}
